package com.yunji.hushuang.decorater;

/**
 * @author hushuang
 * @since 2019/10/31
 */
public class DecoratorTest {

    public static void main(String[] args) {
        ICoffee coffee = new SimpleCoffee();
        coffee = new WithMilk(coffee);
        coffee = new WithHoney(coffee);
        coffee = new WithSugar(coffee);

        System.out.println("cost: " + coffee.getCost());
        System.out.println("ingredients: " + coffee.getIngredients());
    }
}
